<?php

namespace app\store\controller\shop;

use app\store\controller\Controller;
use app\store\model\store\Shop as ShopModel;
use app\store\model\store\ShopActivation as ShopActivationModel;

/**
 * 激活记录记录
 * Class Activation
 * @package app\store\controller\shop
 */
class Activation extends Controller
{
    /**
     * 激活记录列表
     * @param int $shop_id
     * @param string $search
     * @return mixed
     * @throws \think\exception\DbException
     */
    public function index($shop_id=0)
    {
        // 记录列表
        $model = new ShopActivationModel;
        $list = $model->getList($shop_id);
        // 机构列表
        $shopList = (new ShopModel)->getList();
        return $this->fetch('index', compact('list', 'shopList'));
    }

}